<template>
  <div class="pop_up_box">
    <div class="close_btn">
      <img src="@/assets/images/close_btn2.png" />
    </div>
    <div class="input_box">
      <div class="input_item" style="margin-top:1px;">
        <div class="input_label">受灾点名称</div>
        <div class="input_bj">
          <input type="text" />
        </div>
      </div>
      <div class="input_item">
        <div class="input_label">受灾点地点</div>
        <div class="input_bj">
          <input type="text" />
        </div>
      </div>
      <div class="input_item" v-if="type == 2 || type == 3">
        <div class="input_label">受灾点面积</div>
        <div class="input_bj">
          <input type="text" />
        </div>
      </div>
    </div>
    <div v-if="type == 3">
      <div class="dispatch Unscheduled">应急资源还未调度!</div>
      <!-- <div class="dispatch Scheduled">应急资源已调度!</div> -->
    </div>

    <div class="btn_box" v-if="type == 3">
      <div class="btn_bj" style="line-height:36px;">消除</div>
      <div class="btn_bj dispatch_btn">调度</div>
    </div>
    <div class="btn_box" v-else>
      <div class="btn_bj" style="line-height:36px;">取消</div>
      <div class="btn_bj dispatch_btn">确认</div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    type: {
      type: Number
    }
  },
  data () {
    return {}
  }
}
</script>
<style lang="scss" scoped>
.pop_up_box {
  width: 290px;
  max-height: 300px;
  background-image: url('../../assets/images/pop_up_bj.png');
  background-size: cover;
  position: fixed;
  top: 315px;
  right: 417px;
}
.close_btn {
  margin-top: 11px;
  text-align: right;
  margin-right: 10px;
}
.input_item {
  width: 100%;
  margin-top: 20px;
  display: flex;
}
.input_label {
  font-size: 18px;
  font-family: PingFang SC;
  font-weight: 600;
  color: #59aaca;
  line-height: 33px;
  opacity: 0.5;
  margin: 0 16px;
}
.input_bj {
  width: 140px;
  height: 33px;
  background-image: url('../../assets/images/pop_input_bj.png');
  background-size: cover;
  box-sizing: border-box;
  padding-top: 5px;
  padding-left: 8px;
}
.input_bj input {
  width: 100%;
  height: 26px;
  line-height: 26px;
  border: none;
  background: none;
  outline: none;
  color: #59aaca;
  font-size: 14px;
}
.dispatch {
  width: 245px;
  height: 40px;
  margin: 0 auto;
  margin-top: 16px;
  font-size: 18px;
  font-family: PingFang SC;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
  letter-spacing: 3px;
}
.Unscheduled {
  color: #ff5b66;
  background: rgba(255, 91, 102, 0.1);
}
.Scheduled {
  color: #54ff88;
  background: rgba(84, 255, 136, 0.1);
}
.btn_box {
  width: 100%;
  display: flex;
  box-sizing: border-box;
  padding: 20px;
  justify-content: space-between;
}
.btn_bj {
  width: 100px;
  height: 32px;
  line-height: 31px;
  text-align: center;
  font-size: 18px;
  background-image: url('../../assets/images/eliminate_bj.png');
  background-size: cover;
  color: #59aaca;
}
.dispatch_btn {
  height: 30px;
  background-image: url('../../assets/images/dispatch_btn.png');
  background-size: 100%;
  margin-top: 2px;
}
</style>
